<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<span id="show">
		</span>
		<span id="show2">
			
		</span>
		<script type="text/javascript">
			function Person(name,age,job,address){
				this.name=name;
				this.age=age;
				this.job=job;
				this.address=address;
				this.show=show;
			}
			function show(){
				document.getElementById("show").innerHTML="姓名"+this.name+"年龄"+this.age+
				"职业"+this.job+"地址"+this.address;
			}
			var p1=new Person("a","12","学生","北大青鸟");
			p1.show();
		</script>
		<script type="text/javascript">
			function Person(){
				
			}
			Person.prototype.name="a";
			Person.prototype.age=12;
			Person.prototype.job="学生";
			Person.prototype.address="北大青鸟";
			Person.prototype.show=function(){
				document.getElementById("show2").innerHTML="姓名"+this.name+"年龄"+this.age+
				"职业"+this.job+"地址"+this.address;
			}
			var p=new Person();
			p.show();
		</script>
	</body>
</html>
